<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>WD</title>
    <link rel="stylesheet" href="css/wd.css" type="text/css"></link>
    <script src="js/jquery-3.3.1.min.js"></script>
</head>
<body>
<div id="header">
    <div class="top">
        <#if user?exists>
            <div class="left">
                <input id="top_user_login_tag" value="${user.realname}" type="hidden">
                <a href="/loginOut">[退出登录]</a>
                <a href="#">
                    <span class="sp">新消息(<font>0</font>)</span>
                </a>
                <span class="sp userNickName" title="jd">${user.nickname}</span>
                <span class="sp">积分：<font class="myInteger">${user.myinteger}</font></span>
            </div>
        <#else>
            <div class="left">
                <input id="top_user_login_tag" value="" type="hidden">
                <a href="/login">请登录</a> <a href="/register">免费注册</a>
            </div>
        </#if>

        <div class="right">
            <a href="/">首页</a>
            <a href="/common/integralMall.html">积分商城</a>
            <a href="/school.htm">企业合作</a>
            <a href="/userCenter/person">我的易学</a>
            <#if countcart?exists>
                <a href="/userCenter/shoppingCart" class="nz_ts">购物车（
                    <span class="cart_top_num">${countcart}</span>）</a>
            <#else>
                <a href="/userCenter/shoppingCart" class="nz_ts">购物车（
                    <span class="cart_top_num">0</span>）</a>
            </#if>
            <a href="/userCenter/userCollection.html">我的收藏夹</a>
            <a href="http://wpa.qq.com/msgrd?v=3&amp;uin=2636862834&amp;site=qq&amp;menu=yes”"
               target="_blank">联系客服</a>
            <a id="tc" href="#">网站导航 </a>
            <a href="/common/help/help.html">帮助</a>
        </div>
    </div>
</div>

<div id="bottom">
    <div class="left">
        <a href="/"><img src="images/logo.png"></a>
    </div>
    <div class="right">
        <form action="/search">
            <input type="text" class="search" id="queryKeysStr" value="" name="search">
            <input type="submit" value="搜索" class="buttom" id="queryAllButton">
        </form>

        <div class="right_bottom">
            <a href="/searchBypro?product=JAVA">JAVA</a>
            <a href="/searchBypro?product=CCIE">CCIE</a>
            <a href="/searchBypro?product=PS">PS</a>
            <a href="/searchBypro?product=C">C</a>
            <a href="/searchBypro?product=CCNA">CCNA</a>
            <a href="/searchBypro?product=OCA">OCA</a>
            <a href="/searchBypro?product=Android">Android</a>
            <a href="/searchBypro?product=HTML">HTML</a>
            <a href="/searchBypro?product=思科">思科</a>
        </div>
    </div>
</div>

<div id="nav">
    <ul class="menu">
        <li><a href="/">首页</a></li>
        <li><a href="/toOnline">在线学习</a></li>
        <li><a href="/facedirect.htm">面授</a></li>
        <li><a href="/o2o.htm">1对1辅导</a></li>
        <li><a href="/video.htm">视频</a></li>
        <li><a href="/kejian.htm">课件</a></li>
        <li><a href="/identify.htm">考试</a></li>
        <li><a href="/tiku.htm">题库</a></li>
        <li class="now"><a href="/toWD">问答</a>
            <div class="now_top"></div>
        </li>
        <li><a href="/study.htm">求学</a></li>
        <li class="last"><a href="/school.htm">培训学校</a></li>
    </ul>
</div>

<div class="banner">
    <img src="../images/guanggaowei.jpg" height="155" width="1200">
    <span style="min-width: 1200px;"></span>
</div>

<div id="main">
    <div class="left">
        <#if user?exists>
            <div class="top">
                <p class="my_title">我的问答</p>
                <div class="user_div">
                    <img class="user_portrait" src="../images/defaultUserIco.jpg">
                    <span>${user.realname}</span><br>
                    <span>学员<a href="/userCenter/applyForTeacher.html">认证讲师</a></span>
                </div>
                <a class="title_a " href="/question/myQuestion.html">我的提问（<span>${qu}</span>）</a>
                <a class="title_a " href="/question/myAnswer.html">我的回答（<span>${an}</span>）</a>
                <input class="new_question" type="button" value="我要提问">
            </div>
        <#else>
            <div class="top">
                <p class="my_title">我的问答</p>
                <a href="/login">
                    <img class="wd_notLogin" src="../images/wd_notLogin.jpg">
                </a>
                <input class="new_question" type="button" value="我要提问">
            </div>
        </#if>

    </div>
    <div class="right">
        <p class="title">
            <a href="/">IT易学网</a> &gt;
            <a href="/toWD">问答</a>
        </p>

        <ul class="value">
            <li>
                <div id="s">
                    <table width="888" border="0" cellspacing="0" cellpadding="0">
                        <tbody>
                        <tr style="height:48px;" class="category1">
                            <td style="width:112px;" align="center">选择分类：</td>
                            <td>
                                <div class="m_zlxg" id="sh">

                                    <div class="m_zlxg2" id="mu">
                                        <ul id="a">
                                            <li>开发技术</li>
                                            <li>系统管理</li>
                                            <li>数据库管理</li>
                                            <li>网络设备管理</li>
                                            <li>云计算与虚拟化</li>
                                            <li>设计</li>
                                            <li>办公软件</li>
                                            <li>厂商认证培训</li>
                                            <li>其他认证培训</li>
                                        </ul>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr style="height:48px;" class="category2">
                            <td style="width:112px;" align="center">技术领域：</td>
                            <td>
                                <div class="m_zlxg" id="ch">
                                    <div class="m_zlxg2" id="m">
                                        <ul>
                                            <li>嵌入式与移动开发</li>
                                            <li>软件开发</li>
                                            <li>网页开发</li>
                                            <li>游戏开发</li>
                                        </ul>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr style="height:48px;" class="category3">
                            <td style="width:112px; border:none;" align="center">课程产品：</td>
                            <td style=" border:none;">
                                <div class="m_zlxg" id="qu">

                                    <div class="m_zlxg2" id="m1">
                                        <ul>
                                            <li>C</li>
                                            <li>C++</li>
                                            <li>IOS</li>
                                            <li>Android</li>
                                            <li>H5混合开发</li>
                                            <li>其它</li>
                                        </ul>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </li>
        </ul>

        <form class="sh" id="questionForm" action="/wdsearch" method="post">
            <div style="position:absolute;">
                <input type="text" placeholder="请输入要搜索的关键字(40字以内)" name="wdsearch" class="tex placeHolder" id="queryStr"
                       value="">
                <input type="button" class="sear" id="queryQuestion" value="我要搜索">
            </div>
        </form>

        <div class="slideTxtBox">
            <div class="hd">
                <ul>
                    <li class="statusItem on">全部</li>
                    <li class="statusItem">已解决</li>
                    <li class="statusItem">未解决</li>
                    <li class="statusItem last">悬赏问题</li>
                </ul>
            </div>
            <div class="bd">
                <ul>
                    <#if questions?exists>
                        <#list questions as q>
                            <li>
                                <img class="status_img" src="../images/wd_ico3.jpg">
                                <a href="/reply?quid=${q.id}">${q.title} </a>
                                <#if q.isxs=="yes">
                                    <p>${q.xsjf}</p>
                                    <span class="date">
                                        <font class="wd_time">${q.date?string("yyyy-MM-dd HH:mm:ss")}</font>
                                        <font class="answer_num">回答（${q.ancount}）</font>
                                    </span>
                                <#else>
                                    <span class="date">
                                        <font class="wd_time">${q.date?string("yyyy-MM-dd HH:mm:ss")}</font>
                                        <font class="answer_num">回答（${q.ancount}）</font>
                                    </span>
                                </#if>
                            </li>
                        </#list>
                    </#if>
                </ul>

                <div class="page">

                    <#if pageInfo?exists>
                        <#assign thispage=pageInfo.pageNum>
                        <#assign prepage=pageInfo.pageNum-1>
                        <#assign nextpage=pageInfo.pageNum+1>

                        <#if pageInfo.pageNum lte 1>

                            <a href="#">&lt;</a>
                            <span class="now">${thispage}</span>
                            <#if nextpage lte pageInfo.pages>
                                <a href="/wd?toPage=${nextpage}">${nextpage}</a>
                                <#assign nextpage=nextpage+1>
                            </#if>
                            <#if thispage == pageInfo.pages>
                                <a href="#">&gt;</a>
                            <#else>
                                <a href="/wd?toPage=${pageInfo.nextPage}">&gt;</a>
                            </#if>
                            <font>共${pageInfo.pages}页</font>

                        <#else>

                            <a href="/wd?toPage=${pageInfo.prePage}">&lt;</a>
                            <#if (prepage gte 1) && (prepage lt thispage)>
                                <a href="/wd?toPage=${prepage}">${prepage}</a>
                                <#assign prepage=prepage-1>
                            </#if>
                            <span class="now">${thispage}</span>
                            <#if (nextpage lte pageInfo.pages) && (nextpage gt thispage)>
                                <a href="/wd?toPage=${nextpage}">${nextpage}</a>
                                <#assign nextpage=nextpage+1>
                            </#if>
                            <#if thispage == pageInfo.pages>
                                <a href="#">&gt;</a>
                            <#else>
                                <a href="/wd?toPage=${pageInfo.nextPage}">&gt;</a>
                            </#if>
                            <font>共${pageInfo.pages}页</font>
                        </#if>
                    <#else >
                        <a href="#">&lt;</a>
                        <a href="#">&gt;</a>
                        <font>共0页</font>
                    </#if>

                    <form action="/wd">
                        <label>到第</label>
                        <input type="text" class="tet" id="pagenum" value="" name="toPage">
                        <input type="submit" value="确定" class="sub" id="29">
                    </form>
                </div>

            </div>
        </div>

    </div>
</div>

<script src="js/wd.js"></script>
</body>
</html>